'use strict';

const {app, assert} = require('egg-mock/bootstrap');

describe('CollectApiTest', () => {
  let ctx;
  let mockUser;

  before(async function () {
    ctx = app.mockContext();
    mockUser = {id: '5c7cd4f781c857816114c940', access_token: 'edd8bcd1-db39-4ea8-8221-3849349eccc2'};

  });

  it('GET /api/v1/searchTaosou', async () => {
    let q = '曹操';
    const res = await app.httpRequest()
      .get('/api/v1/searchTaosou')
      .query({q: q})
      .expect(200);
    const data = res.body.data;
    console.log(data);
  });

});
